package love.yuanmengrobot.qianyugarden.controller;

import love.yuanmengrobot.qianyugarden.entity.PersonalMenu;
import love.yuanmengrobot.qianyugarden.service.PersonalMenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 个人菜单(PersonalMenu)表控制层
 *
 * @author makejava
 * @since 2021-07-13 14:00:39
 */
@Controller
@RequestMapping("personalMenu")
public class PersonalMenuController {
    /**
     * 服务对象
     */
    @Autowired
      PersonalMenuService personalMenuService;

    /**
     * 通过主键查询单条数据
     *
     * @param id 主键
     * @return 单条数据
     */
    @RequestMapping("selectOne")
    public PersonalMenu selectOne(String id) {
        return this.personalMenuService.queryById(id);
    }

}
